﻿namespace Liger.Web.UI
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class GridCheckboxSettings
    {

        public bool Enabled
        {
            get
            {
                return Checkbox.HasValue && Checkbox.Value;
            }
            set
            {
                Checkbox = value;
            }
        }

        /// <summary>
        /// 是否显示复选框
        /// </summary>
        public bool? Checkbox
        {
            get;
            set;
        }
        /// <summary>
        /// 复选框 初始化函数
        /// </summary>
        public Func<string> IsChecked
        {
            get;
            set;
        }
        /// <summary>
        /// 复选框模式时，是否只允许点击复选框才能选择行
        /// </summary>
        public bool? SelectRowButtonOnly
        {
            get;
            set;
        }
    }
}
